﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;

namespace Skyhook.Sprites
{
    internal class SpriteFullRenderer : ISpriteRenderer
    {
        public SpriteFullRenderer()
        {
        }
        public void Render(SpriteBatch batch, Sprite sprite, Point position, Color color, float depth)
        {
            Vector2 vposition = new Vector2(position.X, position.Y);
            batch.Draw(sprite.Texture, vposition - sprite.CenterPoint, sprite.TextureRectangle, color, 0, new Vector2(0, 0), 1.0f, SpriteEffects.None, depth); 
        }
    }
}
